package app.modules.security.dto.web.function;

import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author mh.z
 */
@Schema(title = "功能的更新信息")
public class WebFunctionUpdateDTO {

    @Schema(title = "记录ID")
    private Long id;

    @Length(max = 50)
    @NotEmpty
    @Schema(title = "功能代码")
    private String functionCode;

    @Length(max = 20)
    @NotEmpty
    @Schema(title = "功能名称")
    private String functionName;

    @Length(max = 200)
    @Schema(title = "备注")
    private String remark;

    @Schema(title = "版本号")
    private Integer versionNumber;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFunctionCode() {
        return functionCode;
    }

    public void setFunctionCode(String functionCode) {
        this.functionCode = functionCode;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public Integer getVersionNumber() {
        return versionNumber;
    }

    public void setVersionNumber(Integer versionNumber) {
        this.versionNumber = versionNumber;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
